<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>5-transition过渡</title>
		<style type="text/css">
			/*默认状态*/
			div{
				width:100px;
				height:60px;
				background:red;
				/* 作用在过渡元素本身 */
				transition: all 0.4s;
			}
			/* 变化的状态 */
			div:hover{
				background:#000;
				width:800px;
			}
		</style>
	</head>
	<body>
		
		<div></div>
		
	</body>
</html>
